#define SIZE 1024

#define LINE_BUFF 1
#define FULL_BUFF 2
#define NONE_BUFF 4

typedef struct  _myFILE
{
    int fd;
    int flags;
    int flush_mode;
    char buff[SIZE];
    int pos;
    int ca;
}myFile;


myFile* myfopen(const char* pathname, const char* mode);
int myfputs(const char* str, myFile* file);
void myfflushcore(myFile* fp,int flag);
void myfclose(myFile* fp);
void myfflush(myFile* fp);
